package com.mybd.req.three;

import org.apache.hadoop.io.WritableComparable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

/**
 * @author: Scq
 * @time: 2021/6/511:15
 */
public class EmployeeInformation implements WritableComparable<EmployeeInformation> {
    public Integer getWage() {
        return wage;
    }

    public void setWage(Integer wage) {
        this.wage = wage;
    }

    private Integer wage;

    public int compareTo(EmployeeInformation o) {
        return this.wage - o.wage;
    }

    public void write(DataOutput out) throws IOException {
        out.writeInt(this.wage);
    }

    public void readFields(DataInput in) throws IOException {
        this.wage = in.readInt();
    }
}
